﻿using System;
using fastCSharp;
using fastCSharp.code.cSharp;

namespace diantou.dataModel.path
{
    /// <summary>
    /// 企业邮件模版
    /// </summary>
    public class enterpriseMail
    {
        /// <summary>
        /// 企业邮件模版标识
        /// </summary>
        public int Id;
        /// <summary>
        /// 格式化URL
        /// </summary>
        /// <param name="name">页面名称/类型</param>
        /// <returns></returns>
        private webView.hashUrl get(string name)
        {
            return new webView.hashUrl { Path = "/enterprise/" + name + ".html", Query = "mailId=" + Id.toString() };
        }
        /// <summary>
        /// 编辑页面
        /// </summary>
        public webView.hashUrl Edit
        {
            get { return get("mailEdit"); }
        }
    }
}
